//package chapter06
//
///**
// * @author Malegod_xiaofei
// * @create 2021-08-03-21:35
// */
//object Test02_PackageObject {
//  def main(args: Array[String]): Unit = {
//    commonMethod()
//    println(commonValue)
//  }
//}

package chapter06 {

  object Test02_PackageObject {
    def main(args: Array[String]): Unit = {
      commonMethod()
      println(commonValue)
    }
  }

}

package ccc {
  package ddd {

    object Test02_PackageObject {
      def main(args: Array[String]): Unit = {
        println(school)
      }
    }

  }

}

// 定义一个包对象
package object ccc {
  val school: String = "atguigu"
}